<script type="text/template" id="template-store-store">
    <div class="MainContainer beanView store">
        <el-row class="breadcrumb">
            <el-breadcrumb separator-class="el-icon-arrow-right">
                <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
                <el-breadcrumb-item>收藏</el-breadcrumb-item>
            </el-breadcrumb>
        </el-row>
        <el-row class="bean">
            <el-col :span="10" :offset="2">
                <el-form :model="bean" :rules="rules" class="form" label-width="250px" size="small">
                    <el-form-item label="类型" prop="type">
                        <el-input v-model="bean.type"></el-input>
                    </el-form-item>
                    <el-form-item label="用户ID" prop="userId">
                        <el-input v-model="bean.userId"></el-input>
                    </el-form-item>
                    <el-form-item label="资源ID" prop="resourceId">
                        <el-input v-model="bean.resourceId"></el-input>
                    </el-form-item>
                    <el-form-item label="资源类型" prop="resourceType">
                        <el-input v-model="bean.resourceType"></el-input>
                    </el-form-item>
                    <el-form-item label="启用" prop="enable">
                        <el-input v-model="bean.enable"></el-input>
                    </el-form-item>
                    <el-form-item label="状态" prop="status">
                        <el-input v-model="bean.status"></el-input>
                    </el-form-item>
                    <el-form-item label="备注" prop="remark">
                        <el-input v-model="bean.remark"></el-input>
                    </el-form-item>
                    <el-form-item label="创建时间" prop="createTime">
                        <el-date-picker placeholder="选择日期" type="date"
                                        v-model="bean.createTime">
                        </el-date-picker>
                    </el-form-item>
                    <el-form-item label="创建者" prop="creator">
                        <el-input v-model="bean.creator"></el-input>
                    </el-form-item>
                    <el-form-item label="更新时间" prop="updateTime">
                        <el-date-picker placeholder="选择日期" type="date"
                                        v-model="bean.updateTime">
                        </el-date-picker>
                    </el-form-item>
                    <el-form-item label="更新者" prop="updator">
                        <el-input v-model="bean.updator"></el-input>
                    </el-form-item>

                    <el-form-item>
                        <el-button type="primary" @click="saveOrUpdate()">保存
                        </el-button>
                        <el-button onclick="history.back()">返回</el-button>
                    </el-form-item>
                </el-form>
            </el-col>
        </el-row>
    </div>
</script>
<script type="application/javascript">
    templateName = "store-store";
    templates[templateName] = Vue.extend({
        template: '#template-' + templateName,
        data: function () {
            return {
                beanName:"store",
                bean: {},
                temp: {},
                rules: solar.validatorRules,
            }
        },
        methods: {
            select: solar.baseMethods.select,
            deleteBean: solar.baseMethods.deleteBeanGoBack,
            saveOrUpdate: solar.baseMethods.saveOrUpdate,

        },
        mounted: function () {
            this.select();
        }

    });
</script>